package com.atguigu.state;

/**
 * DispenseOut（奖品发放完毕状态）
 * 
 * <pre>
 * 说明，当我们activity 改变成 DispenseOutState， 抽奖活动结束
 * 
 * State noRafflleState  不能抽奖状态
 * State canRaffleState  可以抽奖的状态
 * State dispenseState   发放奖品的状态
 * State dispensOutState  奖品发放完毕状态，请下次再参加
 * </pre>
 */
public class StateForDispenseOut extends State {

	// 初始化时传入活动引用
	RaffleActivity activity;

	public StateForDispenseOut(RaffleActivity activity) {
		this.activity = activity;
	}

	@Override
	public void deductScore() {
		System.out.println("奖品发送完了，请下次再参加");
	}

	@Override
	public boolean raffle() {
		System.out.println("奖品发送完了，请下次再参加");
		return false;
	}

	@Override
	public void dispensePrize() {
		System.out.println("奖品发送完了，请下次再参加");
	}
}
